package com.gxuwz.PangGuangyao.business.service;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.gxuwz.PangGuangyao.business.dao.SysEquipmentAccDAO;
import com.gxuwz.PangGuangyao.business.entity.SysEquipmentAcc;
import com.gxuwz.core.pagination.Result;

@Service("sysEquipmentAccService")
public class SysEquipmentAccServiceImpl implements ISysEquipmentAccService {
	@Autowired
	private SysEquipmentAccDAO sysEquipmentAccDAO;

	@Override
	public Result<SysEquipmentAcc> findAll(int page, int row,String logtype) {
		return sysEquipmentAccDAO.find(page, row, logtype);
	}
	
	@Override
	public SysEquipmentAcc findById(String EaId) {
		return sysEquipmentAccDAO.get(SysEquipmentAcc.class, EaId);
	}

	@Override
	public void delete(String EaId) {
		sysEquipmentAccDAO.remove(findById(EaId));		
	}
	
	@Override
	public void add(SysEquipmentAcc sysEquipmentAcc) {
		sysEquipmentAccDAO.save(sysEquipmentAcc);
		
	}

	public void update(SysEquipmentAcc sysEquipmentAcc) {
		// TODO Auto-generated method stub
		
	}



}
